<%-- 
    Document   : authenticate
    Created on : Oct 17, 2011, 9:04:48 PM
    Author     : user
--%>

<%@page import="Model.Util"%>
<%@page import="java.util.UUID"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@include file="checkcaptcha.jsp" %>
<%@include file="checklogin.jsp" %>
<%
session.setAttribute("authenticatecode",authenticateCode);%>
<style type="text/css">
    /*    #copy {
            text-align:center; 
            border:1px solid black; 
            background-color:#ccc; 
            margin:10px; padding:10px; 
        }
        #copy.hover { background-color:#eee; }
        #copy.active { background-color:#aaa; }*/
</style>
<<script type="text/javascript" src="esacombankimage/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="js/zeroclipboard/ZeroClipboard.js"></script>
<script type="text/javascript" src="js/zeroclipboard/jquery.zclip.js"></script>
<script type="text/javascript">
    $(document).ready(function(){
        
    $('#copy').zclip({
        
        path:'js/zeroclipboard/ZeroClipboard.swf',
        copy:$('textarea#box-content').text()
        
    });

    // The link with ID "copy-description" will copy
    // the text of the paragraph with ID "description"


    $('a#copy-dynamic').zclip({
        path:'js/zeroclipboeard/ZeroClipboard.swf',
        copy:function(){return $('input#dynamic').val();}
    });

    // The link with ID "copy-dynamic" will copy the current value
    // of a dynamically changing input with the ID "dynamic"

});
</script>
<%String errorsign = (String)request.getAttribute("errorsign");
String errorfile = (String)request.getAttribute("errorfile");
String missfile = (String)request.getAttribute("missfile");%>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link href="loginbank_img/Style.css" rel="stylesheet" type="text/css">
        <link rel="shortcut icon" href="https://www.e-sacombank.com.vn/sacomweb/sacomicon.ico">

        <script type="text/javascript" src="verticalmenu/stmenu.js"></script>
    </head>
    <center>
        <table align="center" border="0" width="750" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td width="10" height="22"><img border="0" src="./loginbank_img/pagecorner_01.gif" width="10" height="22"></td>
                    <td width="760" align="right" height="22" background="./loginbank_img/bg_top.gif"><map name="FPMap0">	
                            <area href="#" title="Trang chủ Internet Banking" shape="rect" coords="0, 4, 16, 20">
                            <area title="Quy định chung" coords="25, 4, 45, 19" shape="rect" href="#">
                            <area title="Điều khoản sử dụng" coords="53, 5, 70, 18" shape="rect" href="#">
                            <area title="Hỏi đáp" coords="78, 4, 96, 21" shape="rect" href="#">
                            <area title="Sơ đồ Site" coords="105, 4, 123, 21" shape="rect" href="#">
                            <area title="Góp ý" coords="133, 4, 149, 21" shape="rect" href="#">
                        </map>
                        <img border="0" src="./loginbank_img/nav.gif" width="150" height="22" usemap="#FPMap0"></td>
                    <td background="./loginbank_img/bg_top.gif" valign="middle" align="center" width="30">
                        <img border="0" src="./loginbank_img/en_flag.gif" height="15" width="20"> </td>
                    <td width="10" height="22"><img border="0" src="./loginbank_img/pagecorner_02.gif" width="10" height="22"></td>
                </tr>
                <tr>
                    <td colspan="4" width="780" height="88"><img border="0" src="./loginbank_img/banner.gif" width="780" height="88"></td>
                </tr>
                <tr>
                    <td colspan="4" width="780" height="29" background="./loginbank_img/buttonmain.gif" align="center" valign="top"><table border="0" width="760" cellspacing="0" cellpadding="0" height="25">
                            <tbody>
                                <tr>
                                    <td align="center" width="160"><a href="loginbank.jsp" class="mainmenu"><b>TRANG CHỦ</a> </td>
                                    <td align="center" width="5" class="line">|</td>
                                    <td align="center" width="220"><a href="term.htm" class="mainmenu">ĐIỀU KHOẢN SỬ DỤNG</a> </td>
                                    <td align="center" width="5" class="line">|</td>
                                    <td align="center" width="180"><a class="mainmenu" href="#">HƯỚNG DẪN SỬ DỤNG</a> </td>
                                    <td align="center" width="5" class="line">|</td>
                                    <td align="center" width="180"><a class="mainmenu" href="LogoutCustomer">ĐĂNG XUẤT</a> </td>
                                </tr>
                            </tbody>
                        </table></td>
                </tr>
            </tbody>
        </table>
        <table border="1" width="780" cellspacing="0" cellpadding="0" bordercolor="#E8F4FD">

            <tr>
                <td bgcolor="#E8F4FD" valign="middle" class="style1">THÔNG TIN XÁC THỰC</td>

            </tr>
            <tr>
                <td>
                    <form method="POST" action="ProcessAuthenticate" ENCTYPE="multipart/form-data"">
                    <table  border="0" width="100%">
                        <tr>
                            <td colspan="2" scope="col" class="style1">Các bước thực hiện</td>  
                        </tr>
                        <tr>
                            <td colspan="2" scope="col" class="style1">
                                <ul>
                                    <li>
                                        Copy <span class="style2">mã xác thực</span> và dùng private key của bạn để ký    </li>
                                    <li>
                                        Upload certificate của bạn</li>
                                    <li>
                                        Dán chữ kí của bạn tại trường <span class="style2">mã xác thực được ký</span></li>
                                    <li>
                                        Nhấn Xác nhận    </li>
                                </ul>    </td>  
                        </tr>

                        <tr>
                            <td colspan="2" class="style1">Xác thực giao dịch</td>
                        </tr>
                        <tr>
                            <td width="150">Mã xác thực</td>
                        <script type="text/javascript" src="js/zeroclipboard/ZeroClipboard.js"></script>
                        <td><textarea  id="box-content"><%=authenticateCode%></textarea><input type="button" id="copy" value="Copy"/></td>
            </tr>
            <tr>
                <td>Certificate</td>
                <td><input type="file" name="certificate" id="certificate" size="40"><span class="style2">(*)<%if(errorfile!=null)%><%=errorfile%>
                    <%if(missfile!=null)%><%=missfile%></span></td>
            </tr>
            <tr>
                <td>Mã xác thực được ký</td>
                <td>
                    <textarea name="sign" id="textarea" cols="45" rows="5"></textarea><span class="style2">(*)<%if(errorsign!=null)%><%=errorsign%></span></td>
            </tr>
            <tr>
                <td colspan="2" align="center">
                    <input type="submit" name="confirm" id="confirm" value="Xác nhận">
                    <input type="button" name="confirm" id="confirm" value="Hủy bỏ" onclick="window.location='transaction.jsp'">    </td>
            </tr>
        </table>
                    </form>

    </table>
</td>
</tr>

</tbody>
</table>
<table align="center" border="0" width="780" cellspacing="0" cellpadding="0">
    <tbody>
        <tr>
            <td colspan="4" align="center" height="30"><table border="0" width="780" cellspacing="0" cellpadding="0" height="33" bgcolor="#E8F4FD">
                    <tbody>
                        <tr height="28">
                            <td width="163" align="center"><table border="0" width="163" cellspacing="0" cellpadding="0">
                                </table></td>
                            <td width="550" align="center"><a href="index.jsp" class="footer">Trang chủ</a>&nbsp; | <a href="https://www.e-sacombank.com.vn/sacomweb/rulesFirstAction.stb" class="footer">Quy định chung</a>&nbsp; | <a href="https://www.e-sacombank.com.vn/sacomweb/termsOfUsageAction.stb" class="footer">Điều khoản sử dụng</a>&nbsp; | <a href="https://www.e-sacombank.com.vn/sacomweb/faqAction.stb" class="footer">Hỏi đáp</a>&nbsp; | <a href="https://www.e-sacombank.com.vn/sacomweb/sitemapAction.stb" class="footer">Sơ đồ Site</a>&nbsp; | <a href="https://www.e-sacombank.com.vn/sacomweb/commentAction.stb" class="footer">Góp ý</a> </td>
                            <td width="67"><a title="đầu trang" href="#"><img border="0" src="./loginbank_img/toppage.gif" width="62" height="20"></a> </td>
                        </tr>
                    </tbody>
                </table></td>
        </tr>
        <tr>
            <td width="10" height="60" bgcolor="#0B74D1" valign="bottom"><img border="0" src="./loginbank_img/pagecorner_03.gif" width="10" height="22"></td>
            <td width="661" bgcolor="#0B74D1" align="center" class="copyright" height="60"> NGÂN HÀNG ĐIỆN TỬ SACOMBANK - <a href="http://www.e-sacombank.com.vn/"><font color="#FFFFFF"> www.e-sacombank.com.vn</font></a><br>
                HỘI SỞ 266-268 Nam Kỳ Khởi Nghĩa, P.8, Q.3, Tp.HCM&nbsp; -&nbsp; ĐT:  (08) 39.321.606&nbsp; -&nbsp; Fax: (08) 39.320.419<br>
                <a href="index.jsp"><font color="#FFFFFF">Bản quyền © 2007</font></a> <a href="http://www.sacombank.com/" target="_blank"><font color="#FFFFFF">SACOMBANK</font></a></td>
            <td width="99" bgcolor="#0B74D1" align="center" class="copyright" height="60"><a href="https://seal.verisign.com/splash?form_file=fdf/splash.fdf&dn=WWW.E-SACOMBANK.COM.VN&lang=en" target="_blank"><img border="0" src="./loginbank_img/signseal.gif" width="98" height="54"></a></td>
            <td width="10" height="60" bgcolor="#0B74D1" valign="bottom"><img border="0" src="./loginbank_img/pagecorner_04.gif" width="10" height="22"></td>
        </tr>
    </tbody>
</table>
</center>
</body>
</html>